package de.piratech.dasding.data.database.couch.adapters;

import org.codehaus.jackson.annotate.JsonIgnore;

import de.piratech.dasding.data.Location;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class LocationAdapter extends Location {

	public LocationAdapter() {
	}

	public LocationAdapter(Location location) {
		setCity(location.getCity());
		setId(location.getId());
		setLatitude(location.getLatitude());
		setLongitude(location.getLongitude());
		setName(location.getName());
		setStreet(location.getStreet());
		setZip(location.getZip());
	}

	@Override
	@JsonIgnore
	public boolean isValid() {
		return super.isValid();
	}
}
